package com.easywan.exception;

public class ExceptionSupport {
	public static UsersExcetion buildUsersExcetion(UsersExcetion.TYPE type){
		switch(type){
		case NAME:
			return new UsersExcetion("用户名已经被注册！");
		case EMAIL:
			return new UsersExcetion("邮箱已经被注册！");
		case MOBILE: 
			return new UsersExcetion("手机号已经被注册！");
		}
		return null;
	}
}
